#ifndef _UTIL_H
#define _UTIL_H
typedef struct _qq_emoticon qq_emoticon;
struct _qq_emoticon {
        unsigned char index;
        unsigned char symbol;
        const char *name;
};
extern qq_emoticon emoticons_std[];
extern qq_emoticon emoticons_sym[];

extern const size_t emoticons_sym_num;
extern const  size_t emoticons_std_num;
int pack_faces( char* src, char* dst, int outlen );
int mkdir_recursive( char* path );
int trans_faces( char* src, char* dst, int outlen );
int http_request( int* http_sock, char* url, char* session, char* data, int* datalen );
char* mid_value( char* str, char* left, char* right, char* out, int outlen );
void msleep( unsigned int ms ); 
int get_splitable_pos( char* buf, int pos );

#endif

